package com.yfp.group.mapper;

import com.yfp.group.domain.EnterpriseOrderClient;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.group.domain.dto.EnterpriseOrderClientDTO;
import com.yfp.group.domain.vo.EnterpriseOrderClientVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admin
 * @description 针对表【enterprise_order_client(企业订单用户领取)】的数据库操作Mapper
 * @createDate 2024-08-10 09:42:39
 * @Entity domain.com.yfp.group.EnterpriseOrderClient
 */
public interface EnterpriseOrderClientMapper extends BaseMapper<EnterpriseOrderClient> {

    /**
     * 领取订单列表
     *
     * @param enterpriseOrderClientDTO
     * @return
     */
    List<EnterpriseOrderClientVO> orderDetail(EnterpriseOrderClientDTO enterpriseOrderClientDTO);

    /**
     * 根据订单号和房间号查询订单
     *
     * @param orderSnList
     * @param roomNum
     * @return
     */
    List<EnterpriseOrderClient> listByOrderSnAndRoomNum(@Param("orderSnList") List<String> orderSnList, @Param("roomNum") String roomNum);

    Integer getOrderComboIds(String enterpriseOrderSn);
}




